{% extends "gateway/layout.html" %}

{% block title %} 重置密码 {% endblock %}

{% block page_nav %}
{% endblock %}

{% block page_title %}
<h4>重置密码</h4>
{% endblock %}

{% block page_body %}

<div class="container-fluid">
  <div class="col-md-6">
  <form action="{% url 'reset_pw' user_id=user_id %}" method="POST" class="horizontal">
    {% csrf_token %}
    <div class="form-group m-b-20">
      {{ form.old_password }}{{ form.old_password.errors }}
    </div>
    <div class="form-group m-b-20">
      {{ form.password1 }}{{ form.password1.errors }}
    </div>
    <div class="form-group m-b-20">
      {{ form.password2 }}{{ form.password2.errors }}
    </div>

    <div class="login-buttons">
      <button type="submit" class="btn btn-success btn-block btn-lg">重置</button>
    </div>
  </form>
</div>
</div>
{% endblock %}

{% block js %}
<script>
  $('#user').addClass('active');
  $('#account').addClass('active');
  $(document).ready(function () {
    App.init();
  });
</script>
{% endblock %}
